package com.example.sourcesprng.jdk17._sealed;

public record SealedInterface2(String name, int age) implements TestJDK17_Sealed_Interface {

    @Override
    public void hello() {
        System.out.println("SealedInterface2说HIHI");
    }

    public static void main(String[] args) {
        SealedInterface2 sealed1 = new SealedInterface2("张三", 18);
        sealed1.hello();
    }
}
